package com.ysw.rpc.server.component;

import org.springframework.context.ApplicationContext;

/**
 * 存放application context的组件
 *
 * @author YinShangwen
 * @since 2023/4/18 10:02
 */
public class ApplicationContextComponent {
    private static ApplicationContext context;

    public static ApplicationContext get() {
        return context;
    }

    public static void set(ApplicationContext context) {
        ApplicationContextComponent.context = context;
    }
}
